Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve the TimeSeriesRange fromString() #488

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

RemHero
Copy link
Contributor

@RemHero RemHero commented Jan 3, 2023

No description provided.

@RemHero RemHero requested review from zhuyuqing and Cauchy-NY January 5, 2023 03:47
@RemHero RemHero requested review from SolomonAnn and iznauy January 8, 2023 07:16
@@ -106,4 +108,11 @@ public static String reformatColumnName(String name) {
name = name.replaceAll("[)]", "[)]");
return name;
}

public static boolean isContainSpecialChar(String str) {
String regEx = "[`~!@#$%^&()+=|{}':;',<>?~!@#¥%……&()+|{}【】‘;:”“’。,、?]|\n|\r|\t";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reduce this set to the smallest one, in accordance with SQL syntactics.

Copy link
Collaborator

@zhuyuqing zhuyuqing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the special char definition

@@ -106,4 +108,11 @@ public static String reformatColumnName(String name) {
name = name.replaceAll("[)]", "[)]");
return name;
}

public static boolean isContainSpecialChar(String str) {
String regEx = "[~!@#$%&()+=|{}':;',<>?~]|\r|\n|\t|[\u2E80-\u9FFF]";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why Chinese characters are not allowed? Please fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants